package com.jinzhi.jzweb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.CoreServiceImpl;
import com.jinzhi.jzapi.certificate.pojo.MyResultsVo;
import com.jinzhi.jzweb.dao.ExaminationResultsDao;
import com.jinzhi.jzweb.domain.ExaminationResultsDO;
import com.jinzhi.jzweb.pojo.ExaminationResultsExportVo;
import com.jinzhi.jzweb.service.ExaminationResultsService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 考试   成绩
 * </pre>
 * <small> 2020-02-24 21:00:12 | lance</small>
 */
@Service
public class ExaminationResultsServiceImpl extends CoreServiceImpl<ExaminationResultsDao, ExaminationResultsDO> implements ExaminationResultsService {

    @Override
    public Page<MyResultsVo> selByUserId(Map map,int current, int number) {

        // 新建分页
        Page<MyResultsVo> page = new Page<MyResultsVo>(current, number);

        return page.setRecords(this.baseMapper.selByUserId(page,map));
    }

    @Override
    public Page<ExaminationResultsDO> findLists(Map map,int current , int number) {
        Page<ExaminationResultsDO> page = new Page<ExaminationResultsDO>(current, number);

        return page.setRecords(this.baseMapper.findLists(page,map));
    }

    @Override
    public Page<ExaminationResultsDO> findPageList(Map map, int current, int number) {

        Page<ExaminationResultsDO> page = new Page<ExaminationResultsDO>(current, number);

        return page.setRecords(this.baseMapper.findPageList(page,map));
    }

    @Override
    public Page<ExaminationResultsDO> findList(Map map, int current, int number) {

        Page<ExaminationResultsDO> page = new Page<ExaminationResultsDO>(current, number);

        return page.setRecords(this.baseMapper.findList(page,map));
    }

	@Override
	public List<ExaminationResultsExportVo> exportList(Map map) {
		
		return this.baseMapper.exportList(map);
	}

}
